<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<%@ page import="com.hengpeng.itfints.tools.PageUtil" %>
<% 
	PageUtil pageUtil = (PageUtil)request.getAttribute("PageUtil");
%>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息中心列表</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<script src="${path }/js/common/jquery-1.4.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
</head>

<body bgcolor="#f9f9f9">
	<div class="wrapper">
        <!-- head -->
		<c:import url="../../include/top.jsp"></c:import>
    	<!--主体-->
        <div class="pageCenter registeredBox">
            <div class="companyBox">
            	<div class="activationBox">  
            		<div class="productTitle"></div>
                </div>
                <table cellpadding="0" cellspacing="0" class="strategicListTable marginT_20" width="100%">
                	<tr height="40" bgcolor="#f9f9f9">
						<td>信息类别</td> 
                        <td>信息标题</td> 
                        <td>发布日期</td>
                        <td>最后修改日期</td>
                        <td>操作</td>
                    </tr>
                    <c:forEach items="${dataList}" var="auto">
	                    <tr>
	                        <td>${auto.category.name} </td>
	                        <td>${auto.fullTitle }</td>
	                        <td><fmt:formatDate value="${auto.publishTime}" type="both" pattern="yyyy-MM-dd"/></td>
	                        <td><fmt:formatDate value="${auto.updateTime}" type="both" pattern="yyyy-MM-dd"/></td>
	                        <td><a href="<%=request.getContextPath()%>/article/details.htm?articleId=${auto.id}">查看</a> </td>
	                    </tr>
                    </c:forEach>  
                    <tr height="40" bgcolor="#f9f9f9">
						<td colspan="5"> 
							 记录总数<%=pageUtil.getTotalCount()%>条 当前页/总页数<%=pageUtil.getCurrentPage()%> 
						/<%=pageUtil.getPageCount()%>每页显示<%=pageUtil.getPageSize()%>条 
						<a onclick="javascript:go(1,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_frist" class="page-start"><span>首页</span></a> 
						<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() - 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_pre" class="page-prev"><span>上一页</span></a> 
						<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() + 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_next" class="page-next"><span>下一页</span></a> 
						<a onclick="javascript:go(<%=pageUtil.getPageCount()%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_last" class="page-end"><span>末页</span></a> 
						
						</td> 
                    </tr>  
                </table>
            </div>             
        </div>
    	<!--主体-->
    	<!--foot-->
        <c:import url="../../include/foot.jsp"></c:import>
        <!--foot--> 
	</div>   
<script type="text/javascript">
//分页
function go (page, total) {
	if (page > total) {
		page = total;
	}
	window.location.href = "<%=request.getContextPath()%>/article/articlelist.htm?curPage="+page+"";
}
</script> 
</body>
</html>